<template>
	<view>
		<up-navbar title="江苏绿港现代农业有限公司" leftIcon="" placeholder :titleStyle="{}" :autoBack="false"></up-navbar>
		<OrgPicker entry="page" @change="handleChange"></OrgPicker>
		<!-- <tabbar :value="3"></tabbar> -->
	</view>
</template>

<script>
import OrgPicker from '@/components/OrgPicker/index.vue'
import tabbar from '@/components/home-tabbar/index.vue'
import { useSocketStore } from "@/pinia-store/user.js"
import { mapStores } from 'pinia'

export default {
	components: {
		OrgPicker,
		tabbar
	},
	data() {
		return {
		};
	},
	onLoad() {},
	computed: {
	  ...mapStores( useSocketStore)
	},
	methods: {
		handleChange(item) {
      uni.navigateTo({
        url: '/pages/addressBook/details/grdetails',
        animationType: 'none',
        success: function(res) {
          // 通过eventChannel向被打开页面传送数据
          res.eventChannel.emit('details', { item: item })
        }
       
      });
		}
	}
};
</script>

<style lang="scss">
	page {
		box-sizing: border-box;
		background-color: #F0F2F5;
	}
</style>
